#!/bin/bash

for folder in $1/*; do
  if [ -d "$folder" ]; then
    project="$(basename -- $folder)"
    version="$(cat $folder/version)"

    echo "Deploying" $project $version
    echo "$(helm upgrade $project $folder/chart)"
  fi
done